/**
 * Copyright (C) 2025 pony working team
 * SPDX-License-Identifier: MulanPSL-2.0
 */

/* define to prevent recursive inclusion -------------------------------------*/
#ifndef __PONY_HAL_RNG_H__
#define __PONY_HAL_RNG_H__

/* includes (standard library, system) ---------------------------------------*/
#include <stddef.h>
/* includes (other library) --------------------------------------------------*/
/* includes (project) --------------------------------------------------------*/
/* includes (local) ----------------------------------------------------------*/

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/* defines -------------------------------------------------------------------*/
/* typedefs ------------------------------------------------------------------*/
/* macro ---------------------------------------------------------------------*/
/* inlines -------------------------------------------------------------------*/
/* externs -------------------------------------------------------------------*/

/* random number generator */
extern int hal_rng_number(void);
extern int hal_rng_buffer(void *buf, size_t len);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __PONY_HAL_RNG_H__ */
